wayland: Set the master device on the drop-side GdkDragContext
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 26 Jun 2015 12:23:16 +0000 (14:23 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 26 Jun 2015 12:35:41 +0000 (14:35 +0200)
commit8509a07a08ca34367f20783384df35074fb77f3e
treef9cb3851c128c2a6f3fb37e9c17c0c69fe03caf9
parent1178a0ac8bcbdf50d85298e606abd3f64b06bbe4
wayland: Set the master device on the drop-side GdkDragContext

And force the ungrab on it, instead of the slave, in the case of
local DnD drop. This avoids confusions on the pointer events spawn
from DnD, as GDK doesn't think anymore those are from a slave device.
Most namely, it fixes the stuck grab when finishing DnD on the
same app it was started from.
gdk/wayland/gdkdevice-wayland.c